package demo1;

import demo1.Animal;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-11-16
 * Time: 20:13
 */
public class Dog extends Animal {
     int a1 = 1;
    public int dd;

    public Dog(int a, String name, int age) {
        super(a, name, age);
    }


    public void bark() {
        System.out.println(this.name + "狗吠");
        System.out.println(super.name);
    }
   /* @Override
    public void eat(){
        System.out.println("gouliang");
    }*/
}
